﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.master" CodeFile="AddNewJobSeeker.aspx.cs" Inherits="JobSeeker_AddNewJobSeeker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
    <asp:CreateUserWizard ID="cuwJobSeeker" runat="server"
        OnCreatedUser="cuwJobSeeker_CreatedUser" ActiveStepIndex="0"
        OnCreateUserError="cuwJobSeeker_CreateUserError" OnCreatingUser="cuwJobSeeker_CreatingUser"
        Width="980px" Height="159px" RequireEmail="true" DisableCreatedUser="True"
        ContinueDestinationPageUrl="~/Default.aspx"
        OnSendingMail="cuwJobSeeker_SendingMail">

        <MailDefinition From="confirmation@npljobs.com"
            BodyFileName="~/Resources/mail.txt"
            IsBodyHtml="false" Subject="RE:nplJobs User Activation" Priority="High">
        </MailDefinition>

        <WizardSteps>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                <ContentTemplate>
                    <div class="ContainerRight">
                        <div class="ControlDiv">
                            <label class="formLevel">First Name</label>
                            <asp:TextBox ID="txtFirstName" ValidationGroup="cuwJobSeeker" CssClass="formTextBox" runat="server"> </asp:TextBox>
                            <asp:RequiredFieldValidator ForeColor="Red" ID="reqFirstName" runat="server" ControlToValidate="txtFirstName"
                                ErrorMessage="Enater first name" ToolTip="Email is required." ValidationGroup="cuwJobSeeker">*</asp:RequiredFieldValidator>
                        </div>
                        <div class="ControlDiv">
                            <label class="formLevel">Last Name</label>
                            <asp:TextBox ID="txtLastName" ValidationGroup="cuwJobSeeker" CssClass="formTextBox" runat="server"> </asp:TextBox>
                            <asp:RequiredFieldValidator ForeColor="Red" ID="reqLastName" runat="server" ControlToValidate="txtLastName"
                                ErrorMessage="" ToolTip="Enter last name" ValidationGroup="cuwJobSeeker">*</asp:RequiredFieldValidator>
                        </div>

                        <div class="ControlDiv" style="display: none">
                            <label class="formLevel">Email</label>
                            <asp:TextBox ID="Email" CssClass="formTextBox" Text="npljobs@test.com" runat="server"></asp:TextBox>
                        </div>

                        <div class="ControlDiv">
                            <label class="formLevel">Email</label>
                            <asp:TextBox ID="UserName" CssClass="formTextBox" ValidationGroup="cuwJobSeeker" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ForeColor="Red" ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                ErrorMessage="" ValidationGroup="cuwJobSeeker">*</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="UserName"
                                ErrorMessage="Email address is not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                            <asp:Label ID="lblUserMsg" CssClass="formLevel" ForeColor="Red" runat="server"></asp:Label>
                        </div>
                        <div class="ControlDiv">
                            <label class="formLevel">Password</label>
                            <asp:TextBox ID="Password" CssClass="formTextBox" ValidationGroup="cuwJobSeeker" runat="server"> </asp:TextBox>
                            <asp:RequiredFieldValidator ForeColor="Red" ID="RequiredFieldValidator1" runat="server" ControlToValidate="Password"
                                ErrorMessage="" ValidationGroup="cuwJobSeeker">*</asp:RequiredFieldValidator>
                            <asp:Label ID="lblPasswordMsg" CssClass="formLevel" ForeColor="Red" runat="server"></asp:Label>
                           
                        </div>
                        <div class="ControlDiv">
                            <label class="formLevel">Confirm Password</label>
                            <asp:TextBox ID="txtConfirmPassword" CssClass="formTextBox" runat="server"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1"
                                ControlToValidate="Password"
                                ControlToCompare="txtConfirmPassword"
                                Type="String"
                                Operator="Equal"
                                Text="Passwords must match!"
                                runat="Server"
                                ForeColor="Red"
                                Font-Bold="true" />
                        </div>
                    </div>
                </ContentTemplate>
                <CustomNavigationTemplate>
                    <table border="0" style="width: 100%; height: 100%;">
                        <tr>
                            <td colspan="0">
                                <asp:Button ID="btnSave" runat="server" CommandName="MoveNext" ValidationGroup="cuwJobSeeker" Text="Save" />
                            </td>
                        </tr>
                    </table>
                </CustomNavigationTemplate>
            </asp:CreateUserWizardStep>

            <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                <ContentTemplate>
                    <table border="0" style="font-size: 100%; font-family: Verdana" id="TABLE1">
                        <tr>
                            <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #5d7b9d; height: 18px;">Complete</td>
                        </tr>
                        <tr>
                            <td>Your account has been successfully created.<br />
                        </tr>
                        <tr>
                            <td align="right" colspan="2">&nbsp;<asp:LinkButton ID="ContinueButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"
                                BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue"
                                Font-Names="Verdana" ForeColor="#284775" Text="Continue" ValidationGroup="CreateUserWizard1" PostBackUrl="~/Login.aspx"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
    <asp:ValidationSummary ID="ValidationSummary1"
        HeaderText="You must enter a value in the following fields:"
        DisplayMode="BulletList"
        EnableClientScript="true"
        runat="server" />
    <%-- </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
